// JavaScript Document

$(document).ready(function(){
  $(".banner .right li:nth-child(1),.nav li:nth-child(1)").click(function(){
	$('body,html').animate({
            scrollTop:1630},500);
  });
  $(".banner .right li:nth-child(2),.nav li:nth-child(2)").click(function(){
    $("body,html").animate({
		    scrollTop:920},200);
  });
  $(".banner .right li:nth-child(3),.nav li:nth-child(3)").click(function(){
    $("body,html").animate({
		    scrollTop:2210},500);
  });
  $(".banner .right li:nth-child(4)").click(function(){
    $("body,html").animate({
		    scrollTop:2830},500);
  });
  $(".banner .right li:nth-child(5),.nav li:nth-child(4)").click(function(){
    $("body,html").animate({
		    scrollTop:3520},500);
  });
  //按F5返回顶部
  $(document).keydown(function(event){ 
     if(event.keyCode == 116){
         $(window).scrollTop(0);
	 } 
  });
});